export default {

  methods: {
    logintoken() {
      if (!this.$store.getters.token) {
        this.$dialog
          .confirm({
            title: "温馨提醒",
            message: "需要登录才能继续操作",
            confirmButtonText: "去登录",
            cancelButtonText: "再逛逛",
          })
          .then(() => {
            this.$router.replace({
              path: "/login",
              query: {
                backUrl: this.$route.fullPath,
              },
            });
          })
          .catch(() => { });
        return true;
      }
      return false
    }
  }
}